SET MY_DIR=%~dp0

SET AVSB_VER=1.2.1
SET TOOLS_DIR=%MY_DIR%TOOLS
SET LOW_PRIORITY=start /B /I /LOW /WAIT "a"
SET TEMP_DIR=D:\TEMP

REM ====================================
SET X264_PATH=%TOOLS_DIR%\x264\x264.exe
SET BEPIPE_PATH=%TOOLS_DIR%\bepipe\Bepipe.exe
SET NEROAAC_PATH=%TOOLS_DIR%\neroaacenc\neroAacEnc.exe
SET MP4BOX_PATH=%TOOLS_DIR%\mp4box\mp4box.exe
SET OPENAVS_PATH=%TOOLS_DIR%\openavs\openavs.exe
REM ====================================

SET E_MSG=Failed to encode script
SET S_MSG=Script encoded successfully

call %MY_DIR%utl.bat chexist "%TEMP_DIR%" || exit /b 1
call %MY_DIR%utl.bat chexist "%X264_PATH%" || exit /b 1
call %MY_DIR%utl.bat chexist "%BEPIPE_PATH%" || exit /b 1
call %MY_DIR%utl.bat chexist "%NEROAAC_PATH%" || exit /b 1
call %MY_DIR%utl.bat chexist "%MP4BOX_PATH%" || exit /b 1
call %MY_DIR%utl.bat chexist "%OPENAVS_PATH%" || exit /b 1
